package com.physics.mps.module.setting;

import com.physics.mps.entity.vo.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mcsoft
 * @date 2023/09/15 14:37
 **/
@Api(tags = "AppEntity接口")
@RestController
@RequestMapping(value = "/appEntity")
@RequiredArgsConstructor
public class AppEntityController {

    private final AppEntityService appEntityService;


    @PostMapping(value = "/getAppList")
    @ApiOperation(value = "查询所有的仿真软件")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "header", name = "authorization", value = "authorization", dataType = "String", required = true)
    })
    public ResponseResult getAppList() {
        return ResponseResult.success(appEntityService.getAppList());
    }

}
